package IO;

import java.io.*;
import java.nio.charset.Charset;

public class test {
    public static void main(String[] args) {

        try (
                ObjectInputStream ois = new ObjectInputStream(new FileInputStream("iostream\\src\\IO\\6.txt"));
                ){

            Stu s = (Stu)ois.readObject();
            System.out.println(s);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
